Fix skip condition of gh13082.phpt #14922
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The test failure is not particularly related to Travis, but rather is caused by the GD font file to only be suitable for platforms where
int
stores 32bit values in little endian byte order. This platform dependence is documented in the source code[1]. Thus we fix the skip condition and skip reason accordingly.An alternative would be to dynamically create the font file just before running the test, but that appears to be overkill.
[1]
php-src/ext/gd/gd.c
Lines 545 to 556 in d59691c
Note that this is a follow up to #13208.
The skip reason might be improved; I've kept it as short as possible for now.